package com.yuantu.judiciary.model.domain;

import com.yuantu.judiciary.common.SysOnOffState;
import com.yuantu.judiciary.model.BaseDO;
import com.yuantu.judiciary.model.enums.ConfigType;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 系统配置表
 *
 * @author syw
 * @since 2023-06-12
 **/
@Data
@Entity
@DynamicUpdate
@Table(name = "sys_config")
public class SysConfigDO extends BaseDO {

    /**
     * 配置类型
     */
    @Enumerated(EnumType.STRING)
    @Column(length = 10, nullable = false)
    @Comment("配置类型")
    private ConfigType type;

    /**
     * 状态：启用禁用
     */
    @Enumerated(EnumType.STRING)
    @Column(length = 10, nullable = false)
    @Comment("状态：启用禁用")
    private SysOnOffState state;

    /**
     * 备注
     */
    @Column(columnDefinition = "varchar(255) comment '备注'")
    private String remarks;

}
